/* styles.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #f5f5f5;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

/* 侧边栏导航项基础样式 */
.sidebar li {
    padding: var(--sidebar-item-padding, 12px 20px);
    margin: var(--sidebar-item-margin, 8px 0);
    border-radius: 4px;
    cursor: pointer;
   transition: 
      background-color 0.3s ease-in-out,  /* 使用具体属性 */
      transform 0.2s ease-in-out;       /* 保持现有过渡效果 */
    box-sizing: border-box;
}

/* 悬停状态 */
.sidebar li:hover {
    background: #f0f2f5;
    transform: scale(1.02);
}

/* 聚焦状态 */
.sidebar li:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* 禁用状态 */
.sidebar li:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sidebar li {
        padding: 10px;
        margin: 6px 0;
    }
}
.sidebar li:hover {
    background: #e8e8e8;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 图表容器 */
.plot-container {
    height: 500px;
    margin-top: 20px;
}
